<div class="forum <%= cycle 'h','' %>">
  <% form_tag '#', :id => "#{forum_code}_forum_form" do %>
  <dl>
    <dt><%= forum_code %></dt>
    <dd class='l'><%= task.present? ? task.forum_url : forum_url %></dd>
    <dd class='l'><%= task.try(:proxy_ip_and_port) %></dd>
    <dd class='s'><%= task.present? ? "第#{task.trying_count}次尝试" : '' %></dd>
    <dd class='right'>
      <%= hidden_field_tag :'task[forum_code]',forum_code %>
      <%= hidden_field_tag :'task[forum_url]',task.present? ? task.forum_url : forum_url %>
      <%= check_box_tag "water_#{forum_code}",'yes', false, :class => 'checkbox no' %>
    </dd>
  </dl>
  <div id="<%= forum_code %>_result" class="water_result <%= task.status if task.present? %>">
    <% if task.present? %>
    <%= t task.status %><%= " : #{h(task.the_last_exception)}" if task.status.exception? %>
    <% end %>
  </div>
  <% end  %>
</div>  